package com.erp.erp_servers.ProcessCustomer.imp;

import com.erp.erp_dao.ProcessCustomer.IProcessCustomerDAO;
import com.erp.erp_entitys.ProcessCustomer.ProcessCustomerEntity;
import com.erp.erp_entitys.ProcessCustomer.ProcessCustomerExample;
import com.erp.erp_servers.ProcessCustomer.IProcessCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ImpProcessCustomerService implements IProcessCustomerService {
    @Autowired
    IProcessCustomerDAO processCustomerDAO;

    @Override
    public int deleteByExample(ProcessCustomerExample example) {
        return processCustomerDAO.deleteByExample(example);
    }

    @Override
    public int insert(ProcessCustomerEntity record) {
        return processCustomerDAO.insert(record);
    }

    @Override
    public List<ProcessCustomerEntity> selectByExample(ProcessCustomerExample example) {
        return processCustomerDAO.selectByExample(example);
    }
}
